package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.IncidentDetailsMapper;
import com.ruoyi.system.domain.IncidentDetails;
import com.ruoyi.system.service.IIncidentDetailsService;

/**
 * 案例详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-15
 */
@Service
public class IncidentDetailsServiceImpl implements IIncidentDetailsService 
{
    @Autowired
    private IncidentDetailsMapper incidentDetailsMapper;

    /**
     * 查询案例详情
     * 
     * @param id 案例详情ID
     * @return 案例详情
     */
    @Override
    public IncidentDetails selectIncidentDetailsById(Long id)
    {
        return incidentDetailsMapper.selectIncidentDetailsById(id);
    }

    /**
     * 查询案例详情列表
     * 
     * @param incidentDetails 案例详情
     * @return 案例详情
     */
    @Override
    public List<IncidentDetails> selectIncidentDetailsList(IncidentDetails incidentDetails)
    {
        return incidentDetailsMapper.selectIncidentDetailsList(incidentDetails);
    }

    /**
     * 新增案例详情
     * 
     * @param incidentDetails 案例详情
     * @return 结果
     */
    @Override
    public int insertIncidentDetails(IncidentDetails incidentDetails)
    {
        return incidentDetailsMapper.insertIncidentDetails(incidentDetails);
    }

    /**
     * 修改案例详情
     * 
     * @param incidentDetails 案例详情
     * @return 结果
     */
    @Override
    public int updateIncidentDetails(IncidentDetails incidentDetails)
    {
        return incidentDetailsMapper.updateIncidentDetails(incidentDetails);
    }

    /**
     * 批量删除案例详情
     * 
     * @param ids 需要删除的案例详情ID
     * @return 结果
     */
    @Override
    public int deleteIncidentDetailsByIds(Long[] ids)
    {
        return incidentDetailsMapper.deleteIncidentDetailsByIds(ids);
    }

    /**
     * 删除案例详情信息
     * 
     * @param id 案例详情ID
     * @return 结果
     */
    @Override
    public int deleteIncidentDetailsById(Long id)
    {
        return incidentDetailsMapper.deleteIncidentDetailsById(id);
    }
}
